/* 
 * Elemental point class.
 * 
 * Created on 08 January 2013, 19:55
 */

#include "point.h"

point::point() {
    this->x = 0.0;
    this->y = 0.0;
    this->z = 0.0;
}

point::point(domain& dom) {
    this->dom = &dom;
    this->x = 0.0;
    this->y = 0.0;
    this->z = 0.0;
}

point::point(const point& orig) :
    dom(orig.dom), x(orig.x), y(orig.y), z(orig.z)
    {}

point& point::operator =(const point& other) {
    this->dom(other.dom);
    this->x   = other.x;
    this->y   = other.y;
    this->z   = other.z;
}

point::~point() {
}

void point::set(double x, double y, double z) {
    this->x = x;
    this->y = y;
    this->z = z;
}

void point::print() {
    cout << "Point at (" << this->x
         << "," << this->y
         << "," << this->z
         << ")" << endl;
}